---
title: Nebius
description: NebiusTools provides access to Nebius AI Studio's text-to-image generation capabilities with advanced AI models.
---

## Example

The following agent can generate images using Nebius AI Studio:

```python
from agno.agent import Agent
from agno.tools.models.nebius import NebiusTools

agent = Agent(
    instructions=[
        "You are an AI image generation assistant using Nebius AI Studio",
        "Create high-quality images based on user descriptions",
        "Provide detailed information about the generated images",
        "Help users refine their prompts for better results",
    ],
    tools=[NebiusTools()],
)

agent.print_response("Generate an image of a futuristic city with flying cars at sunset", stream=True)
```

## Toolkit Params

| Parameter            | Type                | Default                           | Description                                                    |
| -------------------- | ------------------- | --------------------------------- | -------------------------------------------------------------- |
| `api_key`            | `Optional[str]`     | `None`                            | Nebius API key. Uses NEBIUS_API_KEY if not set.              |
| `base_url`           | `str`               | `"https://api.studio.nebius.com/v1"` | Nebius API base URL.                                       |
| `image_model`        | `str`               | `"black-forest-labs/flux-schnell"` | Default image generation model.                              |
| `image_quality`      | `Optional[str]`     | `"standard"`                      | Image quality setting.                                        |
| `image_size`         | `Optional[str]`     | `"1024x1024"`                     | Default image dimensions.                                     |
| `image_style`        | `Optional[str]`     | `None`                            | Image style preference.                                       |
| `enable_generate_image` | `bool`           | `True`                            | Enable image generation functionality.                        |

## Toolkit Functions

| Function         | Description                                                      |
| ---------------- | ---------------------------------------------------------------- |
| `generate_image` | Generate images from text descriptions using Nebius AI models.  |


## Developer Resources

- View [Tools Source](https://github.com/agno-agi/agno/blob/main/libs/agno/agno/tools/models/nebius.py)
- [Nebius AI Studio Documentation](https://docs.nebius.com/)
- [Nebius API Reference](https://api.studio.nebius.com/docs)
